﻿<%@ Page language="c#" Codebehind="bloggercontent.aspx.cs" validateRequest="false" AutoEventWireup="true" Inherits="sow.bloggercontent" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>forumMain</title>
		<meta content="False" name="vs_snapToGrid">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<LINK href="../springofwater.css" type="text/css" rel="stylesheet">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<div align="center">
			<div align="center">
				<table id="table812" width="80%" border="0">
					<tr>
						<td align="center">
							<% Server.Execute("header.aspx");%>
						</td>
					</tr>
				</table>
			</div>
			<form id="Form1" method="post" runat="server">
				<div align="center">
					<table style="WIDTH: 779px; HEIGHT: 8px" cellSpacing="0" cellPadding="0" align="center"
						border="0">
						<tr>
							<td>
								<UL style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; WIDTH: 98.87%; PADDING-TOP: 0px; FONT-FAMILY: SimSun; LIST-STYLE-TYPE: none; HEIGHT: 25px; BACKGROUND-COLOR: white">
									<li style="DISPLAY: inline">
										<A class="menu" href="index.aspx">泉源首页</A>
									<li style="DISPLAY: inline">
										<A class="empty" href="jianzao.aspx"></A>
									<li style="DISPLAY: inline">
										<A class="menu" href="dengji.aspx">注册登记</A>
									<li style="DISPLAY: inline">
										<A class="menu" href="women.aspx">关于我们</A>
									<li style="DISPLAY: inline">
										<A class="menu" href="mailto:contact@springofwater.net">联络我们</A>
									</li>
								</UL>
							</td>
						</tr>
					</table>
				</div>
				<div align="center">
					<TABLE style="WIDTH: 780px; HEIGHT: 1240px" borderColor="#5d9dd1" cellSpacing="0" cellPadding="0"
						border="1">
						<tr bgColor="#5d9dd1">
							<td style="HEIGHT: 37px">
								<TABLE id="Table61" style="WIDTH: 769px; HEIGHT: 19px" cellSpacing="0" cellPadding="0"
									width="769" border="0">
									<TR>
										<TD style="HEIGHT: 1px" width="20%">
											<font size="2">阅读次数：<% =sReads %></font> 
										</TD>
										<% if (sCreateUser != null && sCreateUser != "")
             { %>
									   	<TD style="HEIGHT: 1px" width="20%">
											<font size="2">推荐人： <% =sCreateUser %></font> 
										</TD>
										<%} %>
										<% if (sURL != null && sURL != "")
             { %>
										<TD style="HEIGHT: 1px" width="35%">
											<font size="2">&nbsp;<font size="2"></font>
											<!-- End -- Added By zxh 7/14/2006-->
										</TD>
										<%} %>
										<TD noWrap style="HEIGHT: 1px" align="right">
                                            <span style="font-size: 10pt">来源： </span><A href='<%=sURL %>'> <font color="blue" size=2>
														<%= sURLName %>
													</font></A>
												<!-- Begin -- Added By zxh 7/14/2006-->
                                            <span style="font-size: 10pt">&nbsp;</span>&nbsp;&nbsp; &nbsp;<A style="TEXT-DECORATION: none" href="index.aspx"><font color="white" size="2">&nbsp;</font> </A>
										</TD>
										 
										<TD noWrap style="HEIGHT: 1px" align="right"><asp:literal id="Literal_UserArticles" runat="server"></asp:literal>&nbsp;&nbsp;<%--<A style="TEXT-DECORATION: none" href="emailcompose.aspx?postid=<%=postID%>" ><font color="white" size="2">推荐给朋友</font></A>--%></TD>
									</TR>
								</TABLE>
							</td>
						</tr>
						<tr>
							<td vAlign="top" align="left"><FONT color="#ffffff"></FONT>
								<P><FONT size="2"><FONT size="2">
											<TABLE id="Table2" cellSpacing="0" cellPadding="0" border="0" style="WIDTH: 100%; HEIGHT: 100%">
												<TR>
													<TD style="WIDTH: 100%; HEIGHT: 393px" vAlign="top" align="left">
														<ASP:REPEATER id="MyRepeater" runat="server">
															<ItemTemplate>
																<TABLE id="Table5" cellSpacing="1" cellPadding="1" border="0" bordercolor="#3366cc">
																	<TR>
																		<TD style="WIDTH: 100%; " align="left" bgColor="lavender" colSpan="1" rowSpan="1"><FONT size="2">&gt;&gt;<FONT color="#ffffff">
																				</FONT><FONT color="#000066">
																					<%# DataBinder.Eval(Container.DataItem, "Subject") %>
																				</FONT></FONT>
																		</TD>
																	</TR>
																	<TR>
																		<TD style="HEIGHT: 8px" vAlign="top" align="left">
																			<table>
																				<tr>
																					<td>
																						<P><FONT size="2"><br>
																								<%#System.Convert.ToString(((System.Data.DataRowView)Container.DataItem)["Body"]) %>
																								<%#Utilities.Helper.GetURL(System.Convert.ToString(((System.Data.DataRowView)Container.DataItem)["URL"])) %>
																								<!-- Added By zxh -->
																								<br>
																								<asp:Literal ID="Literal_ArticleURL" Runat="server"></asp:Literal>
																						<!-- ------------------------ -->
																					</td>
																				</tr>
																			</table>
																		</TD>
																	</TR>
																	<TR>
																		<TD style="HEIGHT: 10px;" vAlign="top" align="right" bgColor="white"><font size="2">
																				<%# DataBinder.Eval(Container.DataItem, "CreateDate") %>
																			</font><A href=
																	                      'bloggerweb.aspx?postID=<%# System.Convert.ToString(DataBinder.Eval(Container.DataItem, "PostID")) %>&UserID=<% Response.Write(userID); %>
																	' style=text-decoration:none><FONT color="#000066" size="2">评论(
																					<%# DataBinder.Eval(Container.DataItem, "ReplyNumbers") %>
																					)</FONT></A> <FONT color="#000066" size="2">阅读次数:<%# DataBinder.Eval(Container.DataItem, "NumberOfVisits") %></FONT></TD>
																	</TR>
																</TABLE>
															</ItemTemplate>
														</ASP:REPEATER>
													</TD>
												</TR>
												<TR>
													<TD style="WIDTH: 874px; HEIGHT: 5px" vAlign="top" align="left">&nbsp;&nbsp;<!--StartFragment --></TD>
												</TR>
												<% if (postID != null && postID != "") { %>
												<tr>
													<td height="30">
														<table border="0" cellpadding="0" cellspacing="0" align="center">
															<tr>
																<td width="100%" height="30">&nbsp;&nbsp;<asp:literal id="Literal_Vote" runat="server">这篇文章对你有帮助吗？（请只投一票）</asp:literal>
																</td>
																<td noWrap>
																	<asp:button id="Button_yes" runat="server" Height="24px" Width="60px" Text="有"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;
																	<asp:button id="Button_no" runat="server" Height="24px" Width="60px" Text="没有"></asp:button></td>
															</tr>
														</table>
													</td>
												</tr>
												<TR>
													<TD style="WIDTH: 874px; HEIGHT: 5px" vAlign="top" align="left" bgColor="#5d9dd1"><font size="2">
															<STRONG>-所有回复</STRONG></font></TD>
												</TR>
												<TR>
													<TD style="WIDTH: 874px; HEIGHT: 7px; SIZE: Smaller" vAlign="top" align="left" bgColor="white"><FONT color="white"><asp:datalist id="DataList4" runat="server" Font-Size="X-Small" Height="136px" Width="768px">
																<ItemTemplate>
																	<table style="WIDTH: 524px" cellpadding="1" cellspacing="1">
																		<tr>
																			<td>
																				<FONT color="#000066" size="2" style="TEXT-DECORATION: underline">
																					<%# DataBinder.Eval(Container.DataItem, "NickName") %>
																					<%# DataBinder.Eval(Container.DataItem, "CreateDate") %>
																				</FONT>
																			</td>
																		</tr>
																		<tr>
																			<td>
																				<FONT color="#000066" size="2">
																					<%# System.Convert.ToString(((System.Data.DataRowView)Container.DataItem)["Body"]).Replace("\n","<br>") %>
																				</FONT>
																			</td>
																		</tr>
																	</table>
																</ItemTemplate>
																<SeparatorTemplate>
																</SeparatorTemplate>
															</asp:datalist></FONT></TD>
												</TR>
												<%}%>
												<TR>
													<TD style="WIDTH: 874px" vAlign="top" align="left"><FONT color="#000066"></FONT></TD>
												</TR>
											</TABLE>
										</FONT></FONT>
								</P>
							</td>
						</tr>
						<TR>
							<TD style="WIDTH: 549px; HEIGHT: 3px" vAlign="top" align="left">&nbsp;&nbsp;&nbsp;</TD>
						</TR>
						<TR>
							<TD style="WIDTH: 549px; HEIGHT: 3px" vAlign="top" align="center" bgColor="#5d9dd1"><FONT color="#ffffff" size="2">
									<% if (postID == null || postID == "") { %>
									<TABLE id="Table6" style="WIDTH: 767px; HEIGHT: 19px" cellSpacing="0" cellPadding="0" width="767"
										border="0">
										<TR>
											<TD width="33%">
												<% if (pageNumber > 1) { %>
												<A style="TEXT-DECORATION: none" href="bloggerweb.aspx?UserID=<% Response.Write(userID); %>&amp;Page=<% Response.Write(pageNumber-1); %>" >
													<font color="white" size="2">???</font> </A>
												<% } %>
											</TD>
											<TD align="center" width="33%"><font color="white" size="2">?<% Response.Write(pageNumber); %>
													? / ?<% Response.Write(totalPages); %>
													?</font>
											</TD>
											<TD align="right" width="33%">
												<% if (pageNumber < totalPages) { %>
												<A style="TEXT-DECORATION: none" href="bloggerweb.aspx?UserID=<% Response.Write(userID); %>&amp;Page=<% Response.Write(pageNumber + 1); %>" >
													<font color="white" size="2">???</font> </A>
												<% } %>
											</TD>
										</TR>
									</TABLE>
									<% } %>
								</FONT>
							</TD>
						</TR>
						<%if (postID != null && postID != "") {%>
						<TR>
							<TD style="WIDTH: 549px; HEIGHT: 1px" vAlign="top" align="left" bgColor="lightgrey"><font size="2"><br>
									请输入你对本文评论: 
									 <% if (Request.Cookies["Email"] == null) { %>
             { %>
									   (<A href="index.aspx"><U><FONT color="#0000ff">请先登录</FONT></U></A><A href="dengji.aspx"><U><FONT color="#0000ff">，或注册</FONT></U></A>)
									   <% } %><br>
									<br>
								</font>
							</TD>
						<TR>
							<TD style="WIDTH: 549px; HEIGHT: 1px" vAlign="middle" align="center">
								<TABLE id="Table3" style="WIDTH: 764px; HEIGHT: 320px" cellSpacing="0" cellPadding="1"
									width="764" border="0">
									<%--<TR>
										<TD vAlign="middle" align="center" style="WIDTH: 897px">&nbsp;&nbsp;&nbsp;
										</TD>
									</TR>
									<TR>
										<TD vAlign="middle" align="center" style="WIDTH: 897px">&nbsp;&nbsp;
										</TD>
									</TR>
									<TR>
										<TD vAlign="middle" align="center" style="WIDTH: 897px">
											<TABLE id="Table4" style="WIDTH: 448px; HEIGHT: 19px" cellSpacing="0" cellPadding="0" width="448"
												border="0">
												<TR>
													<TD><FONT size="2">&nbsp;<!--StartFragment -->
															评论内容: </FONT>
													</TD>
												</TR>
											</TABLE>
										</TD>
									</TR>--%>
									<TR>
										<TD vAlign="middle" align="center" style="WIDTH: 897px"><asp:textbox id="TextBox3" runat="server" Height="166px" Width="756px" TextMode="MultiLine"></asp:textbox></TD>
									</TR>
									<TR>
										<TD vAlign="middle" align="center" style="WIDTH: 897px">&nbsp;
										</TD>
									</TR>
									<TR>
										<TD vAlign="middle" align="center" style="WIDTH: 897px"><asp:button id="Button1" runat="server" Text="提交" OnClick="Button1_Click1"></asp:button>&nbsp;&nbsp;&nbsp;
											<asp:button id="Button2" runat="server" Text="重制" OnClick="Button2_Click"></asp:button></TD>
									</TR>
									<TR>
										<TD vAlign="middle" align="center" style="WIDTH: 897px">&nbsp;&nbsp;&nbsp;
										</TD>
									</TR>
								</TABLE>
							</TD>
						</TR>
						<% } %>
						<TR>
							<TD style="WIDTH: 549px; HEIGHT: 19px"></TD>
						</TR>
					</TABLE>
				</div>
			</form>
			<DIV align="center">
				<table id="table81" width="80%" border="0">
					<tr>
						<td align="center">
							<% Server.Execute("tail.aspx");%>
						</td>
					</tr>
				</table>
			</DIV>
			<DIV></DIV>
		</div>
	</body>
</HTML>
